package testJdk.commonUse.string;

import org.junit.Test;

/**
 * @version 1.0.0
 * Created by cyd on 2023-07-07 18:30:29
 * @ClassName : testJdk.commonUse.string.TestReplaceStr
 * @Description : 类描述
 */
public class TestReplaceStr {

    /**
     * 替换全部字符串
     */
    @Test
    public void test() {
        String str = "java,java,hello world";
        String newStr = str.replaceAll("java", "cyd");
        System.out.println(newStr);
    }
}
